package com.taxshare.seller.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.taxshare.seller.entity.GoodsManageEntity;
import com.taxshare.seller.entity.excel.EstateGoodsManageExcelEntity;
import com.taxshare.seller.entity.excel.GoodsManageExcelEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author YANG
 * @date 2021/3/16
 */
@Mapper
public interface GoodsManageMapper extends BaseMapper<GoodsManageEntity> {

    List<GoodsManageExcelEntity> queryGoodsManage(@Param(Constants.WRAPPER) Wrapper queryWrapper);

    GoodsManageEntity query(@Param("goodsCode") String goodsCode, @Param("goodsName") String goodsName);

    GoodsManageEntity queryEstateGoods(@Param("goodsCode") String goodsCode, @Param("projectCode") String projectCode, @Param("projectName") String projectName);

    List<EstateGoodsManageExcelEntity> queryEstateGoodsManage();

}
